/**
 *  Copyright (c) 2017-2022 Rushang Co.Ltd All Rights Reserved.
 */
package com.rshang.rsdp.exception;

/**
 * 功能简介：系统级异常<br/>
 * @author zhangjun
 * @create 2017年7月31日下午2:23:51
 */
public class RsdpSystemException extends RuntimeException {

	private static final long serialVersionUID = 1L;
	
	private int code;
	
	private String errMsg;

	public RsdpSystemException(int code, String errMsg) {
		super();
		this.code = code;
		this.errMsg = errMsg;
	}
	
	
	public RsdpSystemException(String errMsg) {
		this.code = 200;
		this.errMsg = errMsg;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	public String getErrMsg() {
		return errMsg;
	}

	public void setErrMsg(String errMsg) {
		this.errMsg = errMsg;
	}

}
